package cn.momoshenchi.util;

import java.util.Objects;

/**
 * @version : 1.0
 * @author: momoshenchi
 * @date: 2021/6/9 - 10:50
 */
public class PageUtil
{
    private Integer page=1;
    private Integer size=5;

    public Integer getPage()
    {
        return page;
    }

    public void setPage(Integer page)
    {
        this.page = page;
    }

    public Integer getSize()
    {
        return size;
    }

    public void setSize(Integer size)
    {
        this.size = size;
    }

    @Override
    public boolean equals(Object o)
    {
        if (this == o) {return true;}
        if (o == null || getClass() != o.getClass()) {return false;}
        PageUtil pageUtil = (PageUtil) o;
        return Objects.equals(page, pageUtil.page) && Objects.equals(size, pageUtil.size);
    }

    @Override
    public int hashCode()
    {
        return Objects.hash(page, size);
    }
}
